<%@ include file="/common/taglibs.jsp"%>
<script>
jQuery(document).ready(function(){
	jQuery("#emailConfig").validate();
});
</script>

<div style="padding:5px;" align="center">
<!-- <span style="font-size: 20px;">Holiday Details</span><br/ --><br/><br/>
<s:form id="emailConfig"  name="emailConfig" action="saveOrUpdateEmailConfig" method="post" validate="true">
 <table border="0">
 <tr>
	 		<td class="inputField" nowrap="nowrap">
     			User Name
     		</td>
			<td>
		   <s:textfield  size="10" name="emailConfig.userName" id="emailConfig_userName" cssClass="required" style="width:250px;" />
			</td>
		</tr>
		<tr>
	 		<td class="inputField" nowrap="nowrap">
     			Password
     		</td>
			<td>
		   <s:textfield  size="10" name="emailConfig.password" id="emailConfig_password" style="width:250px;"  cssClass="required"/>
			</td>
		</tr>
 		<tr>
	 		<td class="inputField" nowrap="nowrap">
     			Server Name
     		</td>
			<td>
		<s:textfield  size="10" name="emailConfig.serverName" id=" emailConfig_serverName" style="width:250px;" cssClass="required"/>
			</td>
		</tr>
	<tr>
    		<td class="inputField" nowrap="nowrap">
    			Port No
    		</td>
		<td class="inputTextBox">
				<s:textfield  size="10" name="emailConfig.portNo" id=" emailConfig_portNo" style="width:250px;" cssClass="required" />
		
	</tr>
    	<tr>
    		<td class="inputField" nowrap="nowrap">
    			Inbound Authentication
    		</td>
		<td class="inputTextBox">
			<s:select  name="emailConfig.inboundAuthentication" id="emailConfig_inboundAuthentication" list="#{'Yes':'Yes','No':'No'}" tabindex="5"  style="width:250px;" value="%{emailConfig.getInboundAuthentication()}" />
		</td>
	</tr>
	<tr>
    		<td class="inputField" nowrap="nowrap">
    			SSL Required
    		</td>
		<td class="inputTextBox">
	  <s:select  name="emailConfig.sslRequired" id="emailConfig_sslRequired" list="#{'Yes':'Yes','No':'No'}" tabindex="5"  style="width:250px;" value="%{emailConfig.getSslRequired()}" />
						
	</tr>
	<tr>
		<td class="inputField" nowrap="nowrap">
  				Status
  				</td>
		<td class="inputTextBox">
		<s:radio  name="emailConfig.status" id="emailConfig__status" list="#{'Active':'Active','InActive':'InActive'}" value="%{emailConfig.getStatus()}" />
	</td>
	</tr>
	<tr><td>&nbsp;</td></tr>
	<tr>
		<td colspan="2">
				<s:reset value="Clear" id="saveOrUpdateEmailConfig_0" cssClass="button-gray" theme="simple"/>
				<s:if test="emailConfig.id == ''">
					<s:submit value="Create" id="saveOrUpdateEmailConfig_0" cssClass="button-green" theme="simple" />
				</s:if>
				<s:else>
					<s:submit value="Update" id="saveOrUpdateEmailConfig_0" cssClass="button-green" theme="simple" />
				</s:else>
				<input type="button" value="List" id="saveOrUpdateEmailConfig_0" class="button-gray" onclick="javascript:showLists('/showEmailConfigList');" />
			</td>
	</tr>				
</table>
<s:hidden id="id" name="emailConfig.id"></s:hidden>	
</s:form>
</div> 